import React from 'react';
import cutcity from "./city.js"
class GetCity extends React.Component {
    state={
        city:''
    }
    render() { 
        return <div>
            {this.state.city}
        </div>;
    }

    // getLocalCity(){
        
    // }
    componentDidMount(){
        cutcity()
        .then(res=>{
            this.setState({
                city:res
            })
        })            
    
        // this.getLocalCity()
    }

}

 
export default GetCity;